home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / answers / superfly / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  2.5 KB  |  75 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.    ~opengl2/answers/superfly README
  9.  
  10.             Copyright 1991, 1992, 1993, Silicon Graphics,  Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.    
  15.     fly.h:  contains function prototypes, defines constants, and 
  16.             includes GL/gl.h, GL/glu.h, math.h, stdio.h, and aux.h 
  17.  
  18.  
  19.     flyutil.c:  contains utility routines used by the fly program.
  20.  
  21.  
  22.     superfly.c:  allows the user to "fly" through a simple virtual world. 
  23.  
  24.  
  25.  ____________________________________________________________________________
  26.  * Sample solutions for opengl2 labs.
  27.  * Your challenge - make an even cooler fly!
  28.  *
  29.  * Utility routines are located in flyutil.c
  30.  *
  31.  * MODIFYING THE PROGRAM
  32.  * ---------------------
  33.  * New shapes should be added to the world in the routine drawShapes(). 
  34.  *
  35.  * If new shapes are to be on the path of the autopilot, they must be 
  36.  * near a circle centered at the world origin with a radius of 10.0, 
  37.  * parallel to and raised above the 'floor,' the X-Z plane.
  38.  *
  39.  * As a starting point, here are some good places to center your objects:
  40.  *        ( 0.0, 1.0, 10.0 )
  41.  *        ( 7.0, 1.0, 7.0  )
  42.  *        ( 10.0, 1.0, 0.0 )
  43.  *        ( 7.0, 1.0, -7.0 )
  44.  *        ( 0.0, 1.0, -10.0)
  45.  *        ( -7.0, 1.0, -7.0)
  46.  *        ( -10.0, 1.0, 0.0)
  47.  *        ( -7.0, 1.0, 7.0 )
  48.  *___________________________________________________________________________
  49.  
  50.  
  51.  
  52.                             INPUT CONTROLS:
  53.  
  54.     <?> key         - help, prints this info 
  55.     <a> key - <a>utopilot start/stop 
  56.     <b> key - <b>lend, alpha blending 
  57.     <c> key - cycle <c>lipping plane modes 
  58.     <d> key - <d>ebug mode, prints coords 
  59.     <g> key - show floor <g>rid
  60.     <f> key - <f>og toggle 
  61.     <i> key - <i>mage, displays raster image 
  62.     <m> key - <m>ultisampling toggle
  63.     <n> key - <n>ormals drawing toggle 
  64.     <p> key - <p>olygon offset toggle
  65.     <r> key - <r>eset eye position 
  66.     <s> key - <s>election culling 
  67.     <t> key - <t>exture mapping toggle 
  68.     <w> key - <w>aving flag toggle 
  69.     SPACE key       - cycle wireframe/flat shaded/smooth 
  70.     LEFT Mouse      - control moving the eye forward 
  71.     MIDDLE Mouse    - control moving the eye backward 
  72.     Mouse pointer   - change direction: pull back to go up, forward to dive
  73.     RIGHT Mouse     - pick a shape
  74.     Escape key      - exit the program 
  75.